package com.dingli.framework.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("用户表")
public class User {
    @ApiModelProperty("用户ID")
    private Long user_id;
    @ApiModelProperty("用户名称")
    private String user_name;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("性别：男/女/未知")
    private String sex;
    @ApiModelProperty("电话号码")
    private String phone;
    @ApiModelProperty("身份证号")
    private String id_card;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("受教育程度：0-小学、1-中学、2-高中、3-专科、4-本科、5-硕士、6-博士、7-其他")
    private Integer education;
    @ApiModelProperty("婚姻状况：0-未婚，1-订婚，2-已婚，3-离婚")
    private Integer marriage;
    @ApiModelProperty("生日")
    private Date birthday;
    @ApiModelProperty("省")
    private Long province;
    @ApiModelProperty("市")
    private Long city;
    @ApiModelProperty("区")
    private Long region;
    @ApiModelProperty("详细地址")
    private String address;
    @ApiModelProperty("所属银行：银行职员需填写该字段")
    private Integer bank_id;
    @ApiModelProperty("信用：<1-失信客户，0-低端客户，1-终端客户、2、潜力客户、3、高端客户")
    private Integer credit;
    @ApiModelProperty("角色：0-管理员，1-银行职员，2-客户")
    private Integer role;
    @ApiModelProperty("主题ID")
    private Long theme_id;

    public User() {
    }

    public User(Long user_id, String user_name, String password, String sex, String phone, String id_card, Integer age, Integer education, Integer marriage, Date birthday, Long province, Long city, Long region, String address, Integer bank_id, Integer credit, Integer role, Long theme_id) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.id_card = id_card;
        this.age = age;
        this.education = education;
        this.marriage = marriage;
        this.birthday = birthday;
        this.province = province;
        this.city = city;
        this.region = region;
        this.address = address;
        this.bank_id = bank_id;
        this.credit = credit;
        this.role = role;
        this.theme_id = theme_id;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", id_card='" + id_card + '\'' +
                ", age=" + age +
                ", education=" + education +
                ", marriage=" + marriage +
                ", birthday=" + birthday +
                ", province=" + province +
                ", city=" + city +
                ", region=" + region +
                ", address='" + address + '\'' +
                ", bank_id=" + bank_id +
                ", credit=" + credit +
                ", role=" + role +
                ", theme_id=" + theme_id +
                '}';
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getEducation() {
        return education;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public Integer getMarriage() {
        return marriage;
    }

    public void setMarriage(Integer marriage) {
        this.marriage = marriage;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Long getProvince() {
        return province;
    }

    public void setProvince(Long province) {
        this.province = province;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getRegion() {
        return region;
    }

    public void setRegion(Long region) {
        this.region = region;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getBank_id() {
        return bank_id;
    }

    public void setBank_id(Integer bank_id) {
        this.bank_id = bank_id;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Long getTheme_id() {
        return theme_id;
    }

    public void setTheme_id(Long theme_id) {
        this.theme_id = theme_id;
    }
}
